fixed problem when entering analysis periods