Fixed small boolean check error.