Fix bugs in sdf files