fix get characters error