instances bug fix