fix the map helper to use device.platform instread of just false