corrected check for stale flag