fixed Session bug
fixed JS bug