fix check() warnings