bugfix for wrong automatic movement of the page