fixed regression introduced in close/open/toggle API, thanks to @sbaechler \n closes #66