Bug fix for presence