empty session bug fixed