Fixed ubuntu-1st error handling