I think there is some individuality in some fish - I had a kuhli loach that would do laps around the tank (vertical laps), none of the others did. Didn't seem to cause an issue.
Is the cory whacking into the glass or just swimming along the glass? Swimming along it is normal (they also go to the top and get a gulp of air from time to time). If he's whacking into it, maybe having more cover / hiding places would help him feel more secure and have less chance of being startled and darting around.