Fix disable/enable field function bug