fix period storage - according to the schema