Fixed broken getboolean function