fix NA in top-down