Stored procedure is now fixed