Fix a bug on put mapping