Fixed loc issue with inserted lines