AFAIK there are no optimize limitations. Maybe you've changed BarPeriod at the wrong moment, such as after loading the asset?