Bugs fix in image search