Fixing object to array on server