fixed symlink bug in reset script