fixed bug with mobile device