bugfix check for position