localized memory corruption problem