remove initialization inside if

Urgent bug fix!!!  You'll always get -1 for your category otherwise.