fixed 500 error when navigating topics through tags