Fixed deallocation problem but entity still not showing up.