fix crash in filesystem file memory plugin