Fixed minor bug which caused warnings to sprout everywhere