Fix crash in source plugins