Fixed a bug with type Null objects