Fixing issue #187. Make the relationship between sp and subtype reasonable.