core-5105 fix varies enum comparison