try to fix invalid package name/version