Fixed sidebar code

Change-Id: I0072d1b3596faeeff0f3acbfbf83fe2ea14addff