A code error by the immigration branch in Sarawak prevented Hafiz Hamid from renewing his passport and travelling overseas.