slightly improve robustness of check