fix alteration bug