fix from ani for obstacle gradients.