Make sure we are actually escaping the title
Fixed error resulting from escaping in the condition