Fixed bug in whoosh engine