Fixed a bug with Sid