Fixed the importance sampling solver