Bug #2249: Fix period and period number inputs