fixed bug in passing wrong type through to mapper