Fixed a bug in changeRightLine