fixed issue in egreedy