Fixed some bugs in instance detail