Fix exception error when no args in formatArgs method