repair BUG of "Notice:Only variable references

repair BUG of "Notice:Only variable references should be returned by
reference"
If Session are used after that, it will cause a warning message