fix C-n / C-p directions (thanks bastien)