fix use of void constructor