Fixing errors in EncogProgram