Xenoarch generator rotation fix

Fixes #5165.