fix periods order