fixed index in one of the if conditions which went wrong after merge confict resolutions
fixed index in one of the if conditions which went wrong after merge confict resolutions

openego/eDisGo,openego/eDisGo