Fixing presence URL calculation