fixes an issue with enum