Fixed a bug of the off canvas menu.