fixed error with new version of foundation