small fix in realm script