Fix scrolling bug in angular