fixed error on thread_view page