fixed error in period times