fix some hard code error