fixes transposition bug and example