bug fix: used wrong pos