Fix the love detection code