fixed a sessions problem