fixed bug in mapping transform