Update mapper.php

I finally got it working at last