fixed fail code