Fixed headWords bug.