Fix the snippet for anonymous functions