fix docinvert