Corrects boolean value