Fixed preventDefault for sidebar.