fixed unboxing of boolean values