fixed errors with mobile version code