fix error with initialization