fix calculate pos
Merge pull request #6 from bhimasta/pos

fix calculate pos