Refactor zen_setFrame

Fix bug when trying to search