fix enter search function