fixed nested constructor issue