fixing mobile detection