Payingwindow works properly  now.