Did you replace all 3 lines with just the one, by mistake?
I originally mentioned 3 lines of code. But only suggested changes to the first line. You still need the other 2 lines as-is.