fixed memory corruption vulnerability