Fix messages about @on_complete being undefined. Introduced in 83997f2f70ab3b29f7b54c5b11167ea6dd7b6d3e