Fixed broken sidebar_path function