fix subdir packages