Fixed bug that caused program crash and stop due to incorrect default
code.