bug correction in period