fix mapping crash