fix some errors in packages