fixed bug in constructor
fixed bug in constructor