bugfix last cost