Partial fix for memory mapped file functionality.