bugfix for unlink function call self recursion