Fix wrong pos value