solved bug in pilot creation