Fix type issue in coref interface.