fix #67 First clear the previous details of a application. Otherwise the empty details are not stored.