fix order of global save