fixing rendering controller error