Fixed an issue with clearing divs in mobile