Bug fix: Null pointer with new Session