Fixed errors from enums