Small fix to my functions

When you click a searched element, it splits according to how it was
splitted first