fix some type warning