Is region_modified_account used elsewhere? There is a known bug where within a foreach block you can't make a relation that shares a name externally.
2012/3/7 Dmitriy Ryaboy <dvrya...@gmail.com> > More likely, its a variable name collision. Could you post the whole > script? > >