fix bug in initializer