Fix overwritten "result"