fixes for initialization and scene render