bug fix after comparision with standard homotopy package