Solving issue Issue #1789

Fixed issue #1789, using ```position()``` instead of ```offset()```


*Just commited and reverted by mistake, there is only one real commit*