fix exit to return