fix updating posts