fix extract word bug