fixed constructor issue.