Fix session time bug