restorePos on enter