In-memory modules duplicate fix