Fixed context creation in Threads demo.