Fix canvas script