fix for returning ex