Fix sidedness issues