fix type error capture on results