fix showing sidebar for less than 3 docs, was broken in last commit