Fixed a bug in sbn