fixed bug while converting to sdf