fixed a problem with chaining objects