Fixed some compilation error due to missing enum