fixing weird calendar collapse issue in sidebar