Fixed issue with empty array on save()