fix canvas gen json