Fixed a bug in sparrowNet