Fixed silent bug with checking arguments.