fix a bug in Rlearner.
update a map.