Was not working for realms with a space in the name