fixing strech and offsetX