Fixed exception due wrong type.