fix empty argument in loop issue