setMapping rejects nulls, fix multiple-mapping bug