Fix no trailing character error