fix javascript error when loading session-info