bug fix missing lines