Fixed crash bug in search mapper