fixed ts problems with enums