Fixed exit crash