Apparatus and methods for correcting the timing