Fixing bug in arrow scroll