Fixed issue with BOOL serialization