wrong boolean check