Correct bug decoding tiles in multi-threading