Fixes ABR switch for multi period

fixes #291