fix failure email link is broken