fix crash in coordinate capture plugin