fix bug img tag that has no src attribute