Fixes issue #82

Added fix in collapse directive to fix the issues with isOpen bindings