Alignment/principle component orientation bugfixes