fix procedure parsing