Fixed reward function to be sampled only at mpd creation.