Fixed event unbinding bug.