Fix bug on mobile detect