FIX bug of unmodified package error checking and procedure