Fixed "Maximum call stack size exceeded" when changing sidebar style.