add missing semicolons
[BUG #7265] replace() should only add a class as replacement