fixed missing argument check (closes #541)