Fixed bug in collection search