Fix gradient path edge case