Fix dimension error in the MDFrame