fixed warning of uninitialized value while debugging regex