Fixed a type mismatch.