fixed presence bug