attempt to fix foundation bug