Fix bad call to Object.keys