category for messages fix - copy of https://github.com/amilloy/apnagent/commit/618745a593c56a18ce369ff1003a3d6472667149