fixed logic error with twilio events