Fix invalid argument passing