fixed the bitwise odd number check and arguments to new_map that got cocked up in the revert/merge