isset errors in Cosine strategy