Fixes argument number check