previous bug fix