fix check for title