fixed implicit enum conversion