Fix #5199

Fix #5199. The removed lines caused the CSS selectors to be incorrect.