fix custom marker colors - integer cast was done on a value of range
0..1