fix do not add attr with blank string