Bug #2249: Fix period and period number inputs
(cherry picked from commit 5c7b370f6be5f4f9167d508bdd31b580f05dafd4)