Fixed a line switching issue