Fixed notice when checking arg type