fix domready code