fix argument passing bug