fix branches not respawning issue
create canvas with js