Fixed bug with Warning Detection