fixed error with pageup/pagedown (left,right)