Fixed issue in delete an application #22.