Fix anonymous functions not auto completing

fixes #36