Fixed convert to boolean bug