Resolved ready-state issue