fixed sessions problem