fix destructuring inconsistency.