Fixed a bug that was causing false-positives in detecting bad windows