some platform session bug fixes