fixed a bug where the fragmentPreview was crashing.