Fixes some issues when on the release branch and debugging stuff is disabled.