fixed bug with integer fields