Try to use the lastest version of keycloak. Also do not delete Master realm, just add your realm and use it.