fixed few scripts in the demo directory