Fixed sessionbug in Wrapper and Example