bug fix for missing lines