Fix bug search module does not work on Megamenu

Fix #341