Fix: undefined session[uniqueId] variable