fix some setType warnings