Fixed wrong addinstance declaration