fixing a bug of sidebar and bar notifications