fix coercion of enumerable types