fix GP payment when ams dialog popup