fixed problem with initialization