issue in truncate when no url available