fixed non-objects being converted in arrays