fix padding issues with cog; improve padding on search-exit