Fixed a bug

now checking whether the user is trying to move an item to one of its
children (causing the branch to vanish) - preventing this case