fix for long lasting session