correct debugs problems