Fixed constructor issue in main