Fixed in-line citations

And fixed other small bugs in preview.