Fixed deserialising boolean values