add cursor pointer fix to procedures.