fixed some bugs on mobile browsers.