Fixing coercion bug