fixed bug in get instances