Fixed bug where every KnowledgePort was cast into StandardKP