Fixing a bug in the silly orientation of chains