Finally fixed inverse method