Fixed bug with renderer