Fixed main for default case.