Fix processing of pending changes