fixed handling of boolean