getposition for path fixed