Fix double-rendering regression.