Fix some bugs in touch translation