Fix some types mistake.