fix crash when update resource on a symbol link dir