fix field errors