Fix error for non string session keys.