Fix a bug that caused the scene to only get rendered once.