Fix character distribution bug