Fixed incorrect handling of boolean values