fixed a problem with apply on soft link files