fix engage fixup function when called without any parameters

Reported by Ovidiu Sas
Closes #192

(cherry picked from commit cee47941726c03583eb37ae046a6f5c0293c9913)