fixed bug in public result wrapper.