Fixed transposing of tables