fix bug in forum search where value wasn't provided for thread index