print failed fix bug