bug fix to position reference