foundation bug fix