Fix mapdb persistance