fix argument count check