fixed error with collecting instance name