fixed a sessions controller method