fix bug of outbreak exception error when runninng without attribute