fix bug in DenseWindowDataLayer