Tried fixing bugs in webdemo created by cartesian support