fixed the model_actor and model_realm methods