Fixed as_scalar naming