fix content_write_exists bug