ENG-7204 fixed stored procedure problem