fix search saving