ForeignKey Fix: AlgorithmEntity