Corrected phase advance for last monitors in new algorithm

Note that the phase advance between the last monitor and the first
monitor should be find by taking into account the fractional part of
tune.