Fix presence bug