console cursor bug fix