Workaround for obscure TypeError when unbinding (#7)