fixes a reference error of method `parse`