Fix bug #6186 - map readonly does not work