[TAC-156] bug correction on line move optimization