fixed check-mode for <1.5