fix mobile detect