Fix colours when filling in the preview. Fix outline box position (#1378).