Fixed type errors.

updated.