preschedule done and fix search errors