Fix coordinate shifting and buffer signing