Fix anonymous function