Fixed bug in unlink.