fix add instance does not work #45