fix bug for data view