Don't crash on a cosine error