fix for restoring scroll position