fix a bug of the state mess of skill buttons