fixed unlink bug