fixed bug of setField