Fixed adding a new realm