fix characters count