Fixed bug in mapping append