Fixing skyrendering bug