Fixed SDF generation.