correcting bool value