Fixed formSession bug