fix ARGV length checking