Fixes a bug with search panel template in osx