fix issues with foundation