fixed crash on drawMarkers
fixed wrong delete in destructor