IDEX-278: fix closing not active part.