quick fix for scala's lambda