fixed problem when args is NULL