Fix bug in periodicalpays.js