fix close object game freeze