fixes in renderer