Should fix game freeze