fixbug and mob attack