fixed typo in sidebar code