fixed handling of transpose and key