Fixed typo in check_package() function