fix deleting attached dist file