fix the overlfow problem on smart phones