a couple of fixes for mobile detection.