fixes embarrassing offset error for completion prefix.