fix bugs with sDEBUG not found