fix mobile detection