fixed some bugs with --reload-modified-objects