Foamtting fixes