fixed erroneous check for warnings string