Fixed error when object array field is trimmed