error handling when no topic in category