Bug fixed on potential reward calculation