Fixed bug in mission manager