fix bugs in cartodb demo