fixed resize lines bug