removing html errors v 2