fix for formating char