fixed klt error
added cache search first