Fix same_content check