fix #14 with enum conversion support