Fix character path generation