fix search length
fix bugs
fix bugs