Fixing bug in mobile devices