fixing boolean fail