bugfix for movingobject gradient feature