get_period fix