make unbind method work