remove initialization inside if
Merge pull request #187 from capalmer85/topic_category_bugfix

remove initialization inside if