Fixed termnial cursor misalignment