fixed undefined _debug