fix enum constants
fix oom