GD: correcting the error in the html because of code change