Fixing type check errors.