updated demo to avoid obscure bug on 64bit systems.