register_package: fixes skip detection error