fix doc non-zero vs valid