Fixed a bug in delay.nb (variance was wrong)