Fixed some warnings in the renderer