fix the orginal ws reference