Fixed offcanvas error because state is used as function. Fixes #192