fix Position checking

fixes #274
Merge pull request #275 from Garonenur/dw

fix Position checking