Fix for getBoolean() #346

Code attached. Fixes getBoolean() issue in #346.