Fixed issue about sp type.