Fixed problem with custom annotations when map type change.