fix "unlink bug on Firefox"