fix a bug in map function when strip > 0