Fixed the lzwCodeSize changing too late