Fixed entity rendering issues introduced in previous commit.