Correcting pb with session being null
Service structure now works