fixing stuff in zmalloc :)