Fixes local importance sampling