Fixed a bug with the notice generation.