added a workaround for the jvm memory mapped file write bug