Fixed a bug in previous commit due to not saving the scene