Fixed non-working check.