Fixed Session bug