Fixed log mapper code