Fix SnapMapper code