Fixed session bug where duplicate sessions were made