fix and enable coercion optimization