Fixed performance issue with mobile devices