Fixed error in marker-choosing