Fix problem with enum documentation generaton