Fixed a number of type errors