Fix bugs on mobile devices