found a bug in prepared statements, the query ID is supposed to be a [short bytes] not [short]