Fixed bug concerning the marker color not being updated