fixes an issue for attributes coerced as arrays