Fixing a transpose bug