Fixed problem with structure of renderer