fix fencepost error on periodic operators