fix multiple object failure, plus a test to prove it.