fix binary, indexer and doctype