fixed bugs for ece