fix break on search method