Bugfix when unbinding the typing directive.