Fix incoming/outgoing SMS detection