fix draft2post the index = -1 bug