Fixed bug in Bounded Search