Fixed inspector preview error.