fixed malloc