fixed issues with renderer