Fix mobile device detection