Why hiding field's option is not working properly?