fix constructor issue.