missing 'this' when generate constructor