bug correction end of months amount was doubled