leads debug fix