Fix issues and give proper message when the maximum number of mapmarks is reached