Fixed a bug with Warn