fixed a bug where environment wouldn't render