simple fix for ACT-1854

created a simple fix for ACT-1854, but i think in the future a more general refactoring of the conversion from file to memory model and back is mandatory. Greets Birger