bug fix: need to retain and remember the proxy while the sheet is showing; otherwise it gets deallocated.