Bugs in multi instance mode fixed.