Hmm $sidebar is probably undefined. Dumb copy&paste...