fixed error if uninitialized