fixed the stored proceedure bug