fix function search