fix scroll position after emptying hash