fix a bug whereby markers were missing in preview