Fix PR1 on 64-bit, not checked against KTX

Feel free to test it against KTX, shouldn't break anything.