Fixed bug where warnings were not showing correctly