fixed check_vector