fixed bug where available chars weren't shown correctly