fixed a bug, when confetti was generating a buggy code with passing NULL to strcmp