Fixed the way of getting ahead/behind status.