On the invariance principle for non-uniformly transformations of [0,1]