RTL fixes

This should essentially fix all the remaining issues listed in issue [#2661](http://bugs.locamotion.org/show_bug.cgi?id=2661).