Fix indentation

I think these let-bound functions need to be at top level.