fixed fail bug