Fixed bug in codegen of tail calls.