Fixes sidebar direction issues