got rid of cursor creating memory leak, which I believe also exist(s|ed) in hhp