fix errors in numerical examples