Fix crash with invalid number passed to select_area