Fix local presence processing

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>