fix broken UnexpectedTypeException