Bugfix: only relative positions to an element's parent were used, not to root