fixed problems with enum and boolean