Suppose an object measures $L$ in moving frame $S'$. This is measured at the same time so $\Delta t'=0$ :
$$\Delta x = \gamma(\Delta x'+v\Delta t') = \gamma \Delta x' = \gamma L$$
Since $\gamma \gt 1$, the same object is dilated in the rest frame $S$. This
This is clearly wrong as we know that the object must beis actually contracted. What am I doing wrong?