Fixed critical issue #49 caused by undefined value came from radio button group (#41)