Fixed bug discovered by Jonathan in create_empty_model for transient simulations