some fixes to entity render