Fix overwriting error