This is usually one of two things - clutch cable tension needs adjusting, or someone's moved the gearshift lever to change the pedal's height, rather than adjusting the length of the shift rod at the ball joints on the ends.

If it only happens when the bike's hot, the cable only needs adjusting a bit.