fix GP payment when ams dialog show