Fixes  malloc: *** error for object 0x7fff55ab9a08: pointer being freed
was not allocated