region error fix causing session destroy