Fix incorrect number of returned parameters

Signed-off-by: Marc Delisle <marc@infomarc.info>