fix validatoin bugs on scaled data size