Minor - format code
Fixing query in order to allow session manager to see the sessions.