better scrolling behavior on error clicks