fix some bugs and add life number of character