Final bug in the periodic implementation?