ninja in a fix for search maingallery wrapper incorrectly