Fixed an error in loadCurrentSession