fixed another issue with amend call