fixed problem with initialization of properties