Updated how </spans> work