Fixed a bug where the preview item wasn’t always created when the
rendering of a preview was called