Unable to fix entity render bug