Fix error in hide modals
All elements are available in section