logical field not working while yes/no