Removing the debug statement
Correcting the leave already applied condition.