Fix wrong arguments being passed to a function

Fixes https://github.com/linuxmint/mdm/issues/111.