fix toggling not work; fixes #18