fix bug for datanode and storage