[core] undo a minor mistake from a6d44eb