Fix memory bug in loading mission