fix bugs of image search