Fix period ordering