Fixed console cursor positioning.