Fixes incorrect scroll when the view changes (fix #74).