fixed name
added routine for checking and fixing wrong character numbers