fixed bug with right-structure search cards in template mode