fix bug #18, error condiction 2