Fixed some render problems