mapContour() bug fix (issue 404)