Fixed some type annotations.