Fix when undenying

- Problem when undenying, wrong function was called