changed anonymous function for FDT compatibility of Scaffold (closes #401)