fix exit 1 errors