fixed bad behaviour in getParent() with root folder