fix doubleposting