Fix endless loop problem while creating usage line