fix keywords offset bug