Fix onCancel() event in invite dialog