fix exit codes order