fixed problem with disparity between label and data sizes