Fix for entry preview in plugin