Fixed a bug inside the tableview and textfield logic inside the InspectionViewController.