Fix bool logic bug.