fix open content with null id issue