Attempt to fix RTL support.

This works for the non-component case.

Issue #181.