Fix bug that first application has no last_credit data
Merge remote-tracking branch 'origin/master'