Fixed loop for selectedMarkers.
TODO: Fix selectFlot