fixed copySync bug