fix condition retrieve exception