fixed bugs in Optimal-Score-E