Fixed the issue that Booleans would be casted to Buffers