fixed the errors caused by enum namespacing