fixed bug in constructor created mapping