corrections to numerical and sccor analytical gradient