fix a bug on smartphones