[BUG] Fix bug in leave

Merged Jose Luis Zanotti requested to merge bugfix into 12.0

Merge request reports