fixed bug on function field if type is binary