Fix session bug and got params working