minor fixes in doc_handler and ticket_handler