Fixin client side entity rendering code