fix bug construct not passing attributes