mobile detect bug fix