json attributes mysteriously changed order